package org.jeecgframework.web.material.entity;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.lang.String;
import java.lang.Double;
import java.lang.Integer;
import java.math.BigDecimal;

import javax.xml.soap.Text;

import java.sql.Blob;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.SequenceGenerator;

/**   
 * @Title: Entity
 * @Description: 用户基本信息
 * @author onlineGenerator
 * @date 2015-08-30 11:59:58
 * @version V1.0   
 *
 */
@Entity
@Table(name = "order_info", schema = "")
@SuppressWarnings("serial")
public class OrderInfoEntity implements java.io.Serializable {
	/**主键ID*/
	private java.lang.Integer id;    
	/**用户ID*/
	private java.lang.String userId;
	/**姓名*/
	private java.lang.String userName;
	/**地址*/
	private java.lang.String userAddress;
	/**联系电话一*/
	private java.lang.String userTelephone1;
	/**联系电话二*/
	private java.lang.String userTelephone2;
	/**organizationId*/
	private java.lang.String companyId;
	/**联系电话三*/
	private java.lang.String userTelephone3;
	
	/**备注*/
	private java.lang.String remark;
	/**是通用订单*/
	private java.lang.String isCommon;
	/**是否继续*/
	private java.lang.String isContinue;
	
	/**订单编号*/
	private java.lang.String orderCode;
	
	/**是否提交*/
	private java.lang.String isSubmit;
	
	/**总价*/
	private java.lang.String totalPrice;
	
	/**总价*/
	private java.lang.String createManId;
	
	/**总价*/
	private java.lang.String createManName;
	
	/**总价*/
	private java.lang.String createTime;
	
	
	@Column(name ="CREATE_MAN_ID",nullable=true,length=45)
	public java.lang.String getCreateManId() {
		return createManId;
	}

	public void setCreateManId(java.lang.String createManId) {
		this.createManId = createManId;
	}

	@Column(name ="CREATE_MAN_NAME",nullable=true,length=45)
	public java.lang.String getCreateManName() {
		return createManName;
	}

	public void setCreateManName(java.lang.String createManName) {
		this.createManName = createManName;
	}

	
	@Column(name ="create_time",nullable=true,length=45)
	public java.lang.String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(java.lang.String createTime) {
		this.createTime = createTime;
	}

	/**
	 *get方法: 取得是否提交
	 */
	@Column(name ="IS_SUBMIT",nullable=true,length=45)
	public java.lang.String getIsSubmit(){
		return this.isSubmit;
	}

	/**
	 *set方法: 设置是否提交
	 */
	public void setIsSubmit(java.lang.String isSubmit){
		this.isSubmit = isSubmit;
	}
	/**定金*/
	private java.lang.String downPayment;
	
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  总金额
	 */
	@Column(name ="TOTAL_PRICE",nullable=true,length=45)
   public java.lang.String getTotalPrice() {
		return totalPrice;
	}

	public void setTotalPrice(java.lang.String totalPrice) {
		this.totalPrice = totalPrice;
	}

/**
    * 返回产品订单.
    * @return
    */
	@OneToMany(cascade=CascadeType.ALL,fetch=FetchType.EAGER,mappedBy="productId")
	public List<OrderProductEntity> getListOrderProduct() {
		return listOrderProduct;
	}

	/**
	 * 设置产品订单.
	 * @param listOrderProduct
	 */
	public void setListOrderProduct(List<OrderProductEntity> listOrderProduct) {
		this.listOrderProduct = listOrderProduct;
	}

	/**
	 * 尺寸测量
	 */
	private List<OrderMeasureEntity> listOrderMeasure =new ArrayList<OrderMeasureEntity>();
	 /**
	    * 返回产品订单.
	    * @return
	    */
	@OneToMany(cascade=CascadeType.ALL,fetch=FetchType.LAZY,mappedBy="engineerId")
	public List<OrderMeasureEntity> getOrderMeasureList() {
		return listOrderMeasure;
	}
     
	/**
	 * 设置订单尺寸
	 * @param orderMeasureList
	 */
	public void setOrderMeasureList(List<OrderMeasureEntity> orderMeasureList) {
		this.listOrderMeasure = orderMeasureList;
	}

	/**
	 * 订单产品
	 */
	private List<OrderProductEntity> listOrderProduct = new ArrayList<OrderProductEntity>();	
	/**
	 *方法: 取得java.lang.Integer
	 *@return: java.lang.Integer  主键ID
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	
	@Column(name ="ID",nullable=false,length=20)
	public java.lang.Integer getId(){
		return this.id;
	}

	/**
	 *方法: 设置java.lang.Integer
	 *@param: java.lang.Integer  主键ID
	 */
	public void setId(java.lang.Integer id){
		this.id = id;
	}
	
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  用户ID
	 */
	
	@Column(name ="USER_ID",nullable=true,length=45)
	public java.lang.String getUserId(){
		return this.userId;
	}

	
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  订单编码
	 */
	@Column(name ="order_code",nullable=true,length=45)
	public java.lang.String getOrderCode() {
		return orderCode;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  订单编码
	 */
	public void setOrderCode(java.lang.String orderCode) {
		this.orderCode = orderCode;
	}

	
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  订金
	 */
	@Column(name ="down_payment",nullable=true,length=45)
	public java.lang.String getDownPayment() {
		return downPayment;
	}

	
	
	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  订金
	 */
	public void setDownPayment(java.lang.String downPayment) {
		this.downPayment = downPayment;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  用户ID
	 */
	public void setUserId(java.lang.String userId){
		this.userId = userId;
	}
	
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  姓名
	 */
	
	@Column(name ="USER_NAME",nullable=true,length=45)
	public java.lang.String getUserName(){
		return this.userName;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  姓名
	 */
	public void setUserName(java.lang.String userName){
		this.userName = userName;
	}
	
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  地址
	 */
	
	@Column(name ="USER_ADDRESS",nullable=true,length=45)
	public java.lang.String getUserAddress(){
		return this.userAddress;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  地址
	 */
	public void setUserAddress(java.lang.String userAddress){
		this.userAddress = userAddress;
	}
	
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  联系电话一
	 */
	
	@Column(name ="USER_TELEPHONE_1",nullable=true,length=45)
	public java.lang.String getUserTelephone1(){
		return this.userTelephone1;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  联系电话一
	 */
	public void setUserTelephone1(java.lang.String userTelephone1){
		this.userTelephone1 = userTelephone1;
	}
	
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  联系电话二
	 */
	
	@Column(name ="USER_TELEPHONE_2",nullable=true,length=45)
	public java.lang.String getUserTelephone2(){
		return this.userTelephone2;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  联系电话二
	 */
	public void setUserTelephone2(java.lang.String userTelephone2){
		this.userTelephone2 = userTelephone2;
	}
	
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  companyId
	 */
	
	@Column(name ="company_id",nullable=true,length=45)
	public java.lang.String getCompanyId(){
		return this.companyId;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  companyId
	 */
	public void setCompanyId(java.lang.String companyId){
		this.companyId = companyId;
	}
	
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  联系电话三
	 */
	
	@Column(name ="USER_TELEPHONE_3",nullable=true,length=45)
	public java.lang.String getUserTelephone3(){
		return this.userTelephone3;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  联系电话三
	 */
	public void setUserTelephone3(java.lang.String userTelephone3){
		this.userTelephone3 = userTelephone3;
	}
	
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  备注
	 */
	
	@Column(name ="REMARK",nullable=true,length=2048)
	public java.lang.String getRemark(){
		return this.remark;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  备注
	 */
	public void setRemark(java.lang.String remark){
		this.remark = remark;
	}
	
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  是通用订单
	 */
	
	@Column(name ="IS_COMMON",nullable=true,length=45)
	public java.lang.String getIsCommon(){
		return this.isCommon;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  是通用订单
	 */
	public void setIsCommon(java.lang.String isCommon){
		this.isCommon = isCommon;
	}
	
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  是否继续
	 */
	
	@Column(name ="IS_CONTINUE",nullable=true,length=45)
	public java.lang.String getIsContinue(){
		return this.isContinue;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  是否继续
	 */
	public void setIsContinue(java.lang.String isContinue){
		this.isContinue = isContinue;
	}
	
}
